{{- if not .Values.upmeter.smokeMiniDisabled }}
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: smoke-mini
  namespace: d8-{{ .Chart.Name }}
  {{- include "helm_lib_module_labels" (list . (dict "app" "smoke-mini")) | nindent 2 }}
spec:
  minAvailable: {{ sub (keys .Values.upmeter.internal.smokeMini.sts | len) 1 }}
  selector:
    matchLabels:
      app: smoke-mini
{{- end }}
